feat(providers): add Claude Sonnet 5 model#5291
Conversation
- Add claude-sonnet-5 (1M context, 128k output, adaptive thinking with low/medium/high/xhigh/max effort) as the new flagship Anthropic Sonnet - Use introductory pricing ($2/$10 per MTok, $0.20 cached) in effect through Aug 31 2026 - Promote to recommended and set as Anthropic defaultModel; demote claude-sonnet-4-6 - Route claude-sonnet-5 through adaptive thinking in anthropic/core.ts (manual budget_tokens returns a 400)
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Default model for new LLM blocks, the model combobox fallback, executor constants ( Anthropic provider routing treats Sonnet 5 like Opus 4.7/4.8: adaptive thinking only— Reviewed by Cursor Bugbot for commit 09f9e13. Configure here. |
Greptile SummaryThis PR adds Claude Sonnet 5 as the new Anthropic flagship model. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (3): Last reviewed commit: "feat(blocks): default agent-family block..." | Re-trigger Greptile |
Sonnet 5 accepts the temperature parameter (0-1, per Anthropic API docs), and it replaces claude-sonnet-4-6 as the default/recommended Anthropic model. Omitting the capability silently dropped temperature control for workflows on the default model. The request builder already strips temperature whenever thinking is active, so this only takes effect when thinking is disabled — where temperature is valid.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c712c01. Configure here.
Propagate the Sonnet 5 flagship promotion to the block/executor/UI defaults so the default model is consistent everywhere: - agent/router/evaluator/pi block defaultValue + agent runtime fallback - executor AGENT/ROUTER/EVALUATOR DEFAULT_MODEL constants + pi-handler DEFAULT_MODEL - combobox model-field default fallback - update coupled tests (blocks, router/evaluator handlers, copilot model-suggestion validation) to the new default/recommended set Stagehand's anthropic model pin is left on claude-sonnet-4-6 (separate tool-internal choice, not a block default).
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 09f9e13. Configure here.
Summary
claude-sonnet-5as the new flagship Anthropic Sonnet — 1M context, 128k max output, adaptive thinking withlow/medium/high/xhigh/maxeffort (defaulthigh), native structured outputsrecommendedand set as the AnthropicdefaultModel; demoteclaude-sonnet-4-6claude-sonnet-5through adaptive thinking inanthropic/core.ts— manualbudget_tokensreturns a 400 on Sonnet 5Type of Change
Testing
bun run lintcleantsc --noEmitclean for touched filesproviders/utils.test.ts,providers/models.test.ts)Checklist